// JavaScript Document

function fn_write(){
		var obj = document.frm;
		
		var content = FCKeditorAPI.GetInstance("content"); 			 //fck instance가져오기
		var div = document.createElement("div");					  //div생성
		div.innerHTML = content.GetXHTML();							//fck 내용저장
		
		if(obj.writer.value == ""){ 
			alert("이름을  입력해주세요."); obj.writer.focus(); 
			return;
		}else if(obj.subject.value == ""){ 
			alert("제목을 입력해주세요."); obj.subject.focus(); 
			return;
		}else if(div.innerText == ""){ 
			alert("내용을 입력해주세요."); content.focus(); 
			return;
		}else if(obj.pass.value == ""){ 
			alert("비밀번호를 입력해주세요."); obj.pass.focus(); 
			return;
		}
		else obj.submit();
		
		//var sizeChack = document.getElementById("userPass").value.length;
}
